package subject;

import observer.Zh0202Observer;

import java.util.ArrayList;

/**
 * @author: zh
 * @date: 2021/12/16 16:56
 * @version: 1.0
 */
public abstract class Zh0202MySubject {
    protected ArrayList<Zh0202Observer> observers = new ArrayList<Zh0202Observer>();

    public void addObserver(Zh0202Observer observer){
        observers.add(observer);
    }
    public void delObserver(Zh0202Observer observer){
        observers.remove(observer);
    }
    public abstract void sendMsg();
}
